import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'

// 组织机构
import OrganizationBulid from './views/organization/Build'
import OrganizationShow from './views/organization/Show'

// 报表构建
import TableSubjectBuild from './views/table/SubjectBuild'
import TableSubjectBelong from './views/table/SubjectBelong'
import TablePreview from './views/table/TablePreview'

//业务信息
import BusinessBuild from './views/business/Build'
import BusinessProcess from './views/business/Process'
import BusinessSearch from './views/business/Search'

//目标信息
import TargetBuild from './views/target/Build'
import TargetCompletion from './views/target/Completion'

//报表分析
import AnalysisTable from './views/analysis/TableAnalysis'
import AnalysisTableInfo from './views/analysis/TableInfo'

//设置
import SettingRole from './views/setting/RoleManage'
import SettingUser from './views/setting/UserManage'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '组织机构',
        iconCls: 'iconfont icon-zuzhi',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/organizationBulid', component: OrganizationBulid, name: '组织构建' },
            { path: '/organizationShow', component: OrganizationShow, name: '组织展示' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '科目构建',
        iconCls: 'iconfont icon-qingdan',//图标样式class
        children: [
            { path: '/TableSubjectBuild', component: TableSubjectBuild, name: '科目构建' },
            { path: '/TableSubjectBelong', component: TableSubjectBelong, name: '科目归属' },
            { path: '/TablePreview', component: TablePreview, name: '报表预览' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '经营计划',
        iconCls: 'iconfont icon-yewu',//图标样式class
        children: [
            { path: '/BusinessBuild', component: BusinessBuild, name: '业务录入' },
            { path: '/BusinessProcess', component: BusinessProcess, name: '业务流程' },
            { path: '/BusinessSearch', component: BusinessSearch, name: '业务搜索' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '分析改善',
        iconCls: 'iconfont icon-mubiao',//图标样式class
        children: [
            { path: '/TargetBuild', component: TargetBuild, name: '目标构建' },
            { path: '/TargetCompletion', component: AnalysisTableInfo, name: '完成情况' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '业绩评价',
        iconCls: 'iconfont icon-fenxi',//图标样式class
        children: [
            { path: '/AnalysisTable', component: AnalysisTable, name: '报表分析' },
            { path: '/AnalysisTableInfo', component: AnalysisTableInfo, name: '报表信息' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'iconfont icon-shezhi',//图标样式class
        children: [
            { path: '/SettingRole', component: SettingRole, name: '角色管理' },
            { path: '/SettingUser', component: SettingUser, name: '用户管理' },
        ]
    },
    // { path: '/main', component: Main },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '组织机构',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/main', component: Main, name: '主页', hidden: true },
    //         { path: '/table', component: Table, name: 'Table' },
    //         { path: '/form', component: Form, name: 'Form' },
    //         { path: '/user', component: user, name: '列表' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '导航二',
    //     iconCls: 'fa fa-id-card-o',
    //     children: [
    //         { path: '/page4', component: Page4, name: '页面4' },
    //         { path: '/page5', component: Page5, name: '页面5' }
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '',
    //     iconCls: 'fa fa-address-card',
    //     leaf: true,//只有一个节点
    //     children: [
    //         { path: '/page6', component: Page6, name: '导航三' }
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: 'Charts',
    //     iconCls: 'fa fa-bar-chart',
    //     children: [
    //         { path: '/echarts', component: echarts, name: 'echarts' }
    //     ]
    // },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
